import 'package:flutter/material.dart';
import 'package:flutter/cupertino.dart';
import 'address_model.dart';

class AddressSelectorState {
  //收货人姓名
  TextEditingController controller1 = TextEditingController();
  //收货人手机号
  TextEditingController controller2 = TextEditingController();
  //收货人所在地区
  TextEditingController controller3 = TextEditingController();
  //收货人详细地址
  TextEditingController controller4 = TextEditingController();
  //标签
  int sex = 1;
  bool isSelect = false;
  String provinceName = '';
  String cityName = '';
  String areaName = '';
  int provinceId = 0;
  int cityId = 0;
  int areaId = 0;
  var detail = {};
  int userNumid;

  // 获取后台地址
  List addressList;

  // 获取到的一级省地址
  List<AddressItemModel> addressProvinceList = [];
  // 获取到的二级市地址
  List<AddressItemModel> addressCityList = [];
  // 获取到的三级区地址
  List<AddressItemModel> addressCityAreaList = [];
  // 获取到的四级街道地址
  List<AddressItemModel> addressTownList = [];

  var addressInfo;

  AddressSelectorState() {
    ///Initialize variables
  }


  //根据筛选出的数据
  Map<int, List<ProvinceInfoModel>> datas = new Map();
  // Map<int, List> datas = new Map();

  //选中的model，根据业务需求获取所需要的信息
  Map<int, String> selectDatas = new Map();
  //选中的名称
  Map<int, String> selectNameDatas = new Map();
  //初始化的tab名称
  // List<String> tabs = ["请选择"];
  List<String> tabs = ["省", "市", "区", "街道"];
  //tab的控制器
  TabController tabController;
  //当前所选中的tab位置
  int currentTabPos = 0;
}
